package com.realgodo.site.web.tag;

import org.springside.modules.web.struts2.Struts2Utils;

import com.realgodo.site.entity.space.Space;
import com.realgodo.site.web.ControllerSupport;
import com.realgodo.util.UserUtil;

public class MessageController extends ControllerSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2968578051556671811L;

	public String send() {
		String ok = "2";
		Space current = UserUtil.getCurrentSpace();
		if (current != null) {

			ok = "1";
		}
		Struts2Utils.renderJson(ok);
		return null;
	}

}
